You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > TOpenCLValue.Sgn Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.Sgn Method

Computes signum function from Src and stores the result in the calling object.

Syntax
C#
Visual Basic
public TOpenCLValue Sgn([In] TOpenCLValue Src);

FloatPrecision and TOpenCLBase.ComplexComplexproperties of calling object are adjusted automatically. Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!